import request from "@/utils/request";

// 获取绿色矿山信息
export function getGreenMineInfo(data) {
  return request({
    url: `/qingyang/openPit/count`,
    method: "get",
    params: data,
  });
}

// 获取矿的详细信息
export function getMineInfoById(id) {
  return request({
    url: `/safety/openPit/`+id,
    method: "get"
  });
}

// 查询矿山信息列表
export function getMineInfoList(data) {
  return request({
    url: `/qingyang/openPit/list`,
    method: "get",
    params: data,
  });
}

// 查询矿山储量统计
export function getMineReservesInfo(data) {
  return request({
    url: `/qingyang/openPit/reserves`,
    method: "get",
    params: data,
  });
}

// 重点区域监控
export function getkeyAreasVideo(data) {
  return request({
    url: `/qingyang/video/keyAreas`,
    method: "get",
    params: data,
  });
}

// 视频监控总览
export function getMonitorByMine(data) {
  return request({
    url: `/qingyang/video/list`,
    method: "get",
    params: data,
  });
}

// 获取矿设备
export function getDeviceByMineNo(data) {
  return request({
    url: `/qingyang/equipment/list/equipTypes`,
    method: "post",
    data: data,
  });
}

// 根据deviceName查看边坡GNSS实时数据
export function gnssRealtime(params) {
  return request({
    url: "/qingyang/gnssBi/gnssRealtime",
    method: "get",
    params,
  });
}

// 获取边坡监测记录趋势图
export function sideSlopeGnssTrend(params) {
  return request({
    url: "/qingyang/gnssBi/sideSlopeGnssTrend",
    method: "get",
    params,
  });
}

// 获取矿的储量概况
export function getReservesByMineNo(data) {
  return request({
    url: `/qingyang/openPit/mineral/reserves`,
    method: "get",
    params: data,
  });
}

// 环境历史数据
export function getHistoryData(params) {
  return request({
    url: "/qingyang/environmentBi/getHistoryData",
    method: "get",
    params,
  });
}

// 环境监测记录趋势
export function getTrendData(params) {
  return request({
    url: "/qingyang/environmentBi/getTrendData",
    method: "get",
    params,
  });
}

// 获取title
export function getConfigKey(configKey) {
  return request({
    url: "/system/config/configKey/"+configKey,
    method: "get",
    headers: {
      isToken: false,
    }
  });
}